package com.jyd.P1.enums;

/**
 * @author jyd1124
 * @date 2023/7/20 14:03
 */
public enum ResultEnum {

    SUCCESS(0, "SUCCESS"),
    FAIL(-1, "FAIL"),
    UNKNOWN(-2, "UNKNOWN ERROR");

    private Integer code;

    private String msg;

    private ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
